Repository navigation
Record image_build's classic-builder dependency as an SDK audit exclusion - #314
Conversation
…sion The monthly docker-py audit flags image_build as depending on deprecated surface: the Engine's classic builder, still the /build default but deprecated since v23.0 with no removal version. Without an entry here each audit rediscovers it. docker-py 7.2.0's build() has no builder version, so the public SDK cannot ask for BuildKit. The Engine does not need it to: POST /build?version=2 with the context as the request-body tarball built with BuildKit against a live daemon (API 1.56), with no session and no CLI. The entry therefore records the move as deferred rather than impossible, with its costs (the progress stream becomes encoded BuildKit traces, and a daemon advertising builder 1 still needs the classic path) and the three events that should reopen it.
Claude review: changes requestedScopeThe range changes one file: What I checked and confirmed:
What I could not check: this sandbox has no network and no installed docker-py, so I took these on trust:
The author should make sure the spec quote is verbatim, since review priority 1 is about this kind of claim. FindingsEvery finding is maintainability, about state recorded in prose (ST.1.1, ST.2.1). Nothing is wrong with the code. I am requesting changes because the file's own rule makes this a MUST, and each fix is a wording change.
Not raised
DeclinedNone (no earlier rounds). full review of |
The entry restated things other documents hold and that will go stale: moby's removal-version status, how long the upstream docker-py issues have been open or idle, which daemon the check ran against, and 'for now' and 'today' wording. It now names where to look for each instead, keeping the reasoning. The live-daemon check stays recorded in the previous commit's message.
|
Addressed in 6dba899, all four:
On the unverified claims: the spec quote was checked verbatim against moby's |
Claude review: approveResolved
Still openNone. DeclinedNone. NewNone. The range changes one file,
What I did not check: this sandbox has no network and no installed docker-py. I took on trust the delta review of |
Summary
Adds an entry to the SDK audit exclusions in
architecture/docker-sdk.mdforimage_build's dependency on the Engine's classic builder.The monthly docker-py audit reports this as deprecated surface we depend on: the classic builder is still the
POST /builddefault, but moby has listed it as deprecated since v23.0 (no removal version yet, and it remains the only builder for native Windows images). With no entry, each audit rediscovers it.The entry records the move to BuildKit as deferred rather than impossible:
BuildApiMixin.build()has no builderversionparameter, so the public SDK cannot ask for BuildKit (Support BuildKit docker/docker-py#2230 and Add support for building with buildkit docker/docker-py#3344 are both open).POST /build?version=2with the context as the request-body tarball builds with BuildKit, with no client session and no CLI. Checked against a live daemon at API 1.56: a throwawayFROM scratchimage built, reported its ID in amoby.image.idaux message, and was removed.moby.buildkit.tracemessages rather than text, and a daemon advertising builder version 1 still needs the classic path.version, the move being scheduled, or an Engine release removing the classic builder.Test plan
uv run pytest -q tests/test_docs.py: 28 passed.uv run ruff check .,uv run ruff format --check .,uv run pyright: all clean.uv run pytest -q: 2202 passed, 14 failed. All 14 are intests/test_claude_plugin.pyandtests/test_claude_plugin_release.py, and every failure is caused by an ignoredclaude-plugin/.venv/andclaude-plugin/uv.lockin the local checkout (the plugin-folder checks reject the.venvinterpreter binaries by size, and the lockfile test finds the lockfile). Unrelated to this docs-only change; CI runs on a clean checkout.Checklist
uv run pytest -v,uv run ruff check .,uv run ruff format --check ., anduv run pyrightall pass locally (pytest does not: see the test plan)